package com.example.dubbo.core;

import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * 服务消费端启动
 * @author NiJo_H
 * @version 1.0
 */
@EnableDubbo
@SpringBootApplication
//@EnableAutoConfiguration
@ComponentScan({"com.example.dubbo.core"})
@DubboComponentScan("com.example.dubbo.core")
public class ApplicationCore {
    public static void main(String[] args) {
        SpringApplication.run(ApplicationCore.class,args);
    }
}
